package com.gfxy.modules.items.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gfxy.modules.common.entity.MemberList;
import com.gfxy.modules.items.entity.Xss;
import com.gfxy.modules.items.mapper.XssMapper;
import com.gfxy.modules.items.service.IXssService;
import com.gfxy.modules.items.vo.XssMemberPage;
import org.apache.poi.ss.usermodel.Row;
import org.springframework.stereotype.Service;
import java.util.Map;

import java.util.List;

/**
 * @Description: 学生数
 * @Author: jeecg-boot
 * @Date:   2023-12-28
 * @Version: V1.0
 */
@Service
public class XssServiceImpl extends AbstractProjectServiceImpl<XssMapper, Xss> implements IXssService {



	@Override
	public Double getTotalScore(Xss xxs) {
		int studentNum = xxs.getStudentNum();

		return studentNum * 0.5;
	}

	@Override
	public IPage<XssMemberPage> selectListPage(String date, Integer pageNo, Integer pageSize) {
		Page<XssMemberPage> page = new Page<>(pageNo, pageSize);

		Page<XssMemberPage> page1 = page.setRecords(baseMapper.selectMemberPageListByYear(date));

		return page1;

	}

	@Override
	public List<XssMemberPage> getMemberPageListByYear(String date) {
		return baseMapper.selectMemberPageListByYear(date);
	}


	@Override
	protected Xss getOneProject(Row row) {
		return null;
	}
}
